package com.example.jdbc.pattern.singleton;

/**
 * @author admin
 * @Date 2021/1/4 22:08
 * @Description TODO
 */
public class LazyDubboCheck {

    private LazyDubboCheck() {
    }

    private static volatile LazyDubboCheck lazyDubboCheck;

    public LazyDubboCheck getInstance() {
        if (null == lazyDubboCheck) {
            synchronized (this.getClass()) {
                if (null == lazyDubboCheck) {
                    lazyDubboCheck = new LazyDubboCheck();
                }
            }
        }
        return lazyDubboCheck;
    }

}
